how to solve linear diophantine equations